package com.hyopt.modules.app.service.impl;

import com.baomidou.dynamic.datasource.annotation.DS;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.hyopt.modules.app.dao.ProjectInfoDao;
import com.hyopt.modules.app.entity.ProjectInfo;
import com.hyopt.modules.app.service.ProjectInfoService;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class ProjectInfoServiceImpl extends ServiceImpl<ProjectInfoDao, ProjectInfo> implements ProjectInfoService {


	@Override
	@DS("basic")
	public ProjectInfo getObjectByOtherDb(Long id) {
		return this.getById(id);
	}

	@Override
	@DS("basic")
	public List<ProjectInfo> getListByOtherDb() {
		return this.list();
	}
}
